package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TCurrencyMapper;
import com.ruoyi.system.domain.TCurrency;
import com.ruoyi.system.service.ITCurrencyService;

/**
 * 币种列Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-03-17
 */
@Service
public class TCurrencyServiceImpl implements ITCurrencyService 
{
    @Autowired
    private TCurrencyMapper tCurrencyMapper;

    /**
     * 查询币种列
     * 
     * @param cid 币种列主键
     * @return 币种列
     */
    @Override
    public TCurrency selectTCurrencyByCid(Long cid)
    {
        return tCurrencyMapper.selectTCurrencyByCid(cid);
    }

    /**
     * 查询币种列列表
     * 
     * @param tCurrency 币种列
     * @return 币种列
     */
    @Override
    public List<TCurrency> selectTCurrencyList(TCurrency tCurrency)
    {
        return tCurrencyMapper.selectTCurrencyList(tCurrency);
    }

    /**
     * 新增币种列
     * 
     * @param tCurrency 币种列
     * @return 结果
     */
    @Override
    public int insertTCurrency(TCurrency tCurrency)
    {
        return tCurrencyMapper.insertTCurrency(tCurrency);
    }

    /**
     * 修改币种列
     * 
     * @param tCurrency 币种列
     * @return 结果
     */
    @Override
    public int updateTCurrency(TCurrency tCurrency)
    {
        return tCurrencyMapper.updateTCurrency(tCurrency);
    }

    /**
     * 批量删除币种列
     * 
     * @param cids 需要删除的币种列主键
     * @return 结果
     */
    @Override
    public int deleteTCurrencyByCids(Long[] cids)
    {
        return tCurrencyMapper.deleteTCurrencyByCids(cids);
    }

    /**
     * 删除币种列信息
     * 
     * @param cid 币种列主键
     * @return 结果
     */
    @Override
    public int deleteTCurrencyByCid(Long cid)
    {
        return tCurrencyMapper.deleteTCurrencyByCid(cid);
    }
}
